#!/bin/sh

if [ "$#" -eq 1 ] ; then
    ARG_FILE="$1"
else
    echo "Internal use only."
    exit 1
fi

#Help script

. ./common.sh

progs=(less more cat nano vi emacs)

for prog in ${progs[*]} ; do
checkProg $prog
if [ "$?" -eq 0 ] ; then $PROG $ARG_FILE ; exit 0 ; fi
done

echo -e "No suitable program found for opening the README file."
